package dk.dashboardFP.panels.fontPreview {
	import dk.dashboardFP.panels.subPanels.ui.windowSubPanelUI.WindowSubPanelUI;
	import dk.dashboardFP.core.DashboardFPCore;
	import dk.dashboardFP.panels.subPanels.WindowSubPanel;
	import dk.dashboardFP.panels.tempPanel.AbstractTempWindowPanel;
	import dk.dashboardFP.panels.tempPanel.FontPreviewContent;

	/**
	 * @author josef
	 */
	public class FontPreviewPanel extends AbstractTempWindowPanel {
		private var _fontPreviewContent : FontPreviewContent;
		private var _windowSubPanel : WindowSubPanel;

		public function FontPreviewPanel(doDashboardFPCore : DashboardFPCore) {
			super(doDashboardFPCore, "Embedded fonts");
		}

		override protected function createPanelElements() : void {
			
			// subpanel
			_windowSubPanel=new WindowSubPanel(this, "Font preview"); 
			addSubPanel(_windowSubPanel);
			
			// content 
			_fontPreviewContent=new FontPreviewContent();
			
			(_windowSubPanel.doSubPanelUI as WindowSubPanelUI).addWindowContent(_fontPreviewContent);
		}
	}
}
